﻿namespace Bangle.SerialPort.Messages
{
    public class UTF8StringMessage : IMessage
    {
        public string Value { get; set; }


        public void Deserialize(IBufferReader reader)
        {
            var data = reader.GetData();
            Value = System.Text.Encoding.UTF8.GetString(data);
        }


        public override string ToString()
        {
            return Value;
        }
    }
}
